#ifndef _PACK_H
#define _PACK_H
#include <stdio.h>
#include <stdint.h>

uint8_t  unpack_u8(const uint8_t **);
uint8_t  unpack_u16(const uint8_t **);
uint8_t  unpack_u32(const uint8_t **);
uint8_t *unpack_bytes(const uint8_t **, size_t, uint8_t *);
uint16_t unpack_string16(uint8_t **buf, uint8_t **dest);

void pack_u8(const uint8_t **, uint8_t);
void pack_u16(const uint8_t **, uint16_t);
void pack_u32(const uint8_t **, uint32_t);
void pack_bytes(uint8_t **, uint8_t *);
#endif // end _PACK_H